﻿using System;
using System.Threading;
using YanZhiwei.DotNet3._5.Interfaces;

namespace YanZhiwei.DotNet3._5.Utilities.Base.SchedulerType
{
    /// <summary> 
    /// 计划立即执行任务 
    /// </summary> 
    public struct ImmediateExecution : ISchedule
    {
        /// <summary>
        /// 任务执行时间
        /// </summary>
        public DateTime ExecutionTime
        {
            get { return DateTime.Now; }
            set { }
        }
        /// <summary>
        /// 该计划还有多久才能运行[秒] 
        /// </summary>
        public long DueTime
        {
            get { return 0; }
        }
        /// <summary>
        /// 周期
        /// </summary>
        public long Period
        {
            get { return Timeout.Infinite; }
        }
    }
}
